<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title></title>
	<style type="text/css">
		.box div{
			width: 1000px;
			height: 200px;
			margin: 0 auto;
		}
		/*	linear-gradient 背景渐变	*/
		/*	线性渐变---从上到下（默认）	*/
		.box div:nth-of-type(1){
			background: linear-gradient(red,green,blue);
		}
		/*	线性渐变----从左到右  to(目标方位)	*/
		.box div:nth-of-type(2){
			background: linear-gradient(to right,red,green,blue);
		}
		/*	线性渐变----从右下到左上  to(目标方位)	*/
		.box div:nth-of-type(3){
			background: linear-gradient(to left top,red,green,blue);
		}
		/*	线性渐变----指定角度  度数+deg	*/
		.box div:nth-of-type(4){
			background: linear-gradient(45deg,red,green,blue);
		}
		/*	radial-gradient 镜像渐变----颜色均匀分布  	*/
		.box div:nth-of-type(5){
			background: radial-gradient(red,green,blue);
		}
		/*	radial-gradient 镜像渐变----颜色不均匀分布  设置他的占比	*/
		.box div:nth-of-type(6){
			background: radial-gradient(red 20%,green 20%,blue 60%);
		}
		/*	radial-gradient 镜像渐变----设置性状圆形circle	*/
		.box div:nth-of-type(7){
			background: radial-gradient(circle,red 20%,green 20%,blue 60%);
		}
	</style>
</head>
<body>
	<div class="box">
		<div></div>
		<div></div>
		<div></div>
		<div></div>
		<div></div>
		<div></div>
		<div></div>
		<div></div>
	</div>
</body>
</html>